<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap 3 CSS -->
    <link rel="stylesheet" href="https://unpkg.com/bootstrap@3.4.1/dist/css/bootstrap.min.css">

    <!-- jQuery -->
    <script src="https://unpkg.com/jquery@1.12.4/dist/jquery.min.js"></script>

    <!-- Bootstrap 3 JS -->
    <script src="https://unpkg.com/bootstrap@3.4.1/dist/js/bootstrap.min.js"></script>
    <title>字典管理界面</title>
    <style>

    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">字典管理</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="字典类型">
                </div>
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="字典名称">
                </div>
                <div class="form-group">
                    <select class="form-control">
                        <option value="-1">所有</option>
                        <option value="0">启用</option>
                        <option value="1">禁用</option>
                    </select>
                </div>
                <button class="btn btn-default">查询</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#" data-toggle="modal" data-target="#addDictModal">添加字典</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                       aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>


<!-- 添加字典模态框 -->
<div class="modal fade" id="addDictModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">添加字典</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal">
                    <div class="form-group">
                        <label for="inputDname" class="col-sm-2 control-label">字典名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="inputDname" placeholder="请输入字典名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputDtype" class="col-sm-2 control-label">字典类型</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="inputDtype" placeholder="请输入字典类型">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputDtype" class="col-sm-2 control-label">字典类型</label>
                        <div class="col-sm-10">
                            <div class="checkbox">
                                <label>
                                    <input type="radio" value="0" name="dstate"> 启用
                                </label>
                                <label>
                                    <input type="radio" value="1" name="dstate"> 禁用
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-1 col-sm-10">
                            <div class="checkbox">
                                <label>
                                    <span style="color: red;"></span>
                                </label>

                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary">保存</button>
            </div>
        </div>
    </div>
</div>
<!-- 数据字典的表格 -->
<table class="table table-bordered table-striped table-condensed">
    <thead>
    <th>#</th>
    <th>字典名称</th>
    <th>字典类型</th>
    <th>状态</th>
    <th>备注</th>
    <th>创建时间</th>
    <th>操作</th>
    </thead>
    <tbody>
    <tr>
        <td>1</td>
        <td>用户性别</td>
        <td>sys_user_sex</td>
        <td>启用</td>
        <td>用户性别</td>
        <td>2024-12-12</td>
        <td>
            <button class="btn btn-primary btn-xs">编辑</button>
            <button class="btn btn-info btn-xs">列表</button>
            <button class="btn btn-danger btn-xs">删除</button>
        </td>
    </tr>
    <tr>
        <td>1</td>
        <td>用户性别</td>
        <td>sys_user_sex</td>
        <td>启用</td>
        <td>用户性别</td>
        <td>2024-12-12</td>
        <td>
            <button class="btn btn-primary btn-xs">编辑</button>
            <button class="btn btn-info btn-xs">列表</button>
            <button class="btn btn-danger btn-xs">删除</button>
        </td>
    </tr>
    <tr>
        <td>1</td>
        <td>用户性别</td>
        <td>sys_user_sex</td>
        <td>启用</td>
        <td>用户性别</td>
        <td>2024-12-12</td>
        <td>
            <button class="btn btn-primary btn-xs">编辑</button>
            <button class="btn btn-info btn-xs">列表</button>
            <button class="btn btn-danger btn-xs">删除</button>
        </td>
    </tr>
    <tr>
        <td>1</td>
        <td>用户性别</td>
        <td>sys_user_sex</td>
        <td>启用</td>
        <td>用户性别</td>
        <td>2024-12-12</td>
        <td>
            <button class="btn btn-primary btn-xs">编辑</button>
            <button class="btn btn-info btn-xs">列表</button>
            <button class="btn btn-danger btn-xs">删除</button>
        </td>
    </tr>
    </tbody>

    <tfoot>
    <tr>
        <td colspan="7" style="text-align: center;">
            <nav aria-label="Page navigation">
                <ul class="pagination">
                    <li>
                        <a href="#" aria-label="Previous">
                            <span aria-hidden="true">&laquo;</span>
                        </a>
                    </li>
                    <li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">5</a></li>
                    <li>
                        <a href="#" aria-label="Next">
                            <span aria-hidden="true">&raquo;</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </td>
    </tr>
    </tfoot>
</table>
</body>
</html>